package exercises.Charpter8;

class First{
	void func1(){
		System.out.println("Func1" + func2());
	}
	String func2(){
		return "First Func2";
	}
}

class Second extends First{
	@Override
	String func2(){
		return "Second Func2";
	}
}

public class Ten {
	static void call(First a){
		a.func1();
	}
	public static void main(String[] args){
		Second second = new Second();
		call (second);
	}
}
